<?php
/**
 * Ecga首页
 *
 * PHP version 5
 *
 * @package   Ecga
 * @author    Garbin <huangjiabin@ec3s.com>
 * @copyright 2010 Xingchangxinda Inc.
 * @version   SVN: $Id$
 */
namespace Project\Apps\Ecga\Controllers;

use \Project\Apps\Ecga\Controllers\Abstraction\EcgaController;
use \Framework\System\Helper\HttpResponse;
use \Project\Apps\Ecga\Application;

/**
 * 用于输出Ecga Flash沙盒Xml
 *
 * PHP version 5
 *
 * @package   Ecga
 * @author    Garbin <huangjiabin@ec3s.com>
 * @copyright 2010 Xingchangxinda Inc.
 * @version   Release: <0.1>
 **/
class Crossdomain extends EcgaController
{
	/**
     * 此控制器不需要权限控制
     *
     * @param string $act 动作
     *
     * @author Garbin
     * @return void
     */
    public static function validate($act)
    {
        return true;
    }
	
	/**
	 * 输出沙盒Xml
	 * 
	 * @return void
	 */
	public static function show()
	{
		$app = Application::getInstance()->getPath();
		HttpResponse::outputFile($app . '/config/crossdomain.xml', 'text/xml');
	}
	
}